home *** CD-ROM | disk | FTP | other *** search
/ Die Ultimative Software-P…i Collection 1996 & 1997 / Die Ultimative Software-Pakete CD-ROM fur Atari Collection 1996 & 1997.iso / g / gnu_c / pmlsrc23.zoo / pmlsrc / Makefile.sun < prev    next >
Encoding:
Makefile  |  1994-03-19  |  1.4 KB  |  76 lines

  1. #
  2. #  FILE
  3. #
  4. #    Makefile    build and install the pml library (32 bit ints)
  5. #
  6. #  SYNOPSIS
  7. #
  8. #    make funcs    make version of library in local directory
  9. #    make install    install the library (must be root)
  10. #
  11. #  WARNING
  12. #
  13. #    The order of the modules listed in the "LEVEL<n>" macros
  14. #    is significant since these are the orders in which
  15. #    they will be loaded into the library archive.  Although
  16. #    some machines support randomly ordered libraries, ordering
  17. #    them correctly doesn't hurt...
  18.  
  19. AR = ar
  20. CC = gcc
  21. CFLAGS = -O -DIEEE -DNO_DBUG -I.
  22.  
  23. LIB = $(CROSSLIB)
  24.  
  25. INC = $(CROSSINC)
  26.  
  27.  
  28. LEVEL0 =    matherr.o
  29.  
  30. LEVEL1 =    sign.o mod.o poly.o dabs.o sqrt.o rint.o
  31.  
  32. LEVEL2 =    acos.o acosh.o asin.o asinh.o atan2.o atan.o \
  33.         log10.o tan.o \
  34.         tanh.o sinh.o cosh.o atanh.o \
  35.         log.o sin.o cos.o exp.o max.o min.o floor.o pow.o
  36.  
  37. LEVEL3 =    casin.o cacos.o cmult.o catan.o ccosh.o clog.o \
  38.         crcp.o csinh.o csqrt.o ctan.o ctanh.o cexp.o \
  39.         ccos.o csin.o cdiv.o csubt.o cabs.o
  40.  
  41. LEVEL4 =    cadd.o
  42.  
  43. OBJ =        $(LEVEL4) $(LEVEL3) $(LEVEL2) $(LEVEL1) $(LEVEL0)
  44.  
  45. #
  46. #    The default thing to make.
  47. #
  48.  
  49. default:    libpml.a
  50.  
  51. libpml.a:    $(OBJ)
  52.         rm -f libpml.a
  53.         $(AR) rv libpml.a $(OBJ)
  54.         ranlib libpml.a
  55.  
  56. $(OBJ) :    pml.h
  57.  
  58. #
  59. #    Stuff to do installation
  60. #
  61.  
  62. install :    $(LIB)/libpml.a $(INC)/pmluser.h
  63.  
  64. $(LIB)/libpml.a:    libpml.a
  65.             cp libpml.a $(LIB)/libpml.a
  66.  
  67. $(INC)/pmluser.h :    pmluser.h
  68.             cp pmluser.h $(INC)/pmluser.h
  69.  
  70. #
  71. #    Clean up the directory.
  72. #
  73.  
  74. clean:
  75.     rm -f *.o *.BAK libpml.a *.tmp *.bak nohup.out
  76.